import 'package:flutter_deer/generated/json/base/json_field.dart';
import 'package:flutter_deer/index/models/football_ratio_entity.dart';
import 'package:flutter_deer/generated/json/game_item_entity.g.dart';

@JsonSerializable()
class GameItemEntity {

  GameItemEntity();

  factory GameItemEntity.fromJson(Map<String, dynamic> json) => $GameItemEntityFromJson(json);

  Map<String, dynamic> toJson() => $GameItemEntityToJson(this);

  @JSONField(name: 'id')
  String? id;
  @JSONField(name: 'specialId')
  int? specialId;
  @JSONField(name: 'name')
  String? name;
  @JSONField(name: 'footballTeamOne')
  int? footballTeamOne;
  @JSONField(name: 'footballTeamTwo')
  int? footballTeamTwo;
  @JSONField(name: 'playTime')
  String? playTime;
  @JSONField(name: 'playDate')
  String? playDate;
  @JSONField(name: 'teamOne')
  FootballTeamEntity? teamOne;
  @JSONField(name: 'teamTwo')
  FootballTeamEntity? teamTwo;
  @JSONField(name: 'teamOneName')
  String? teamOneName;
  @JSONField(name: 'teamTwoName')
  String? teamTwoName;
  @JSONField(name: 'competitionResult')
  String? competitionResult;
  @JSONField(name: 'teamOneScoreResult')
  int? teamOneScoreResult;
  @JSONField(name: 'teamTwoScoreResult')
  int? teamTwoScoreResult;
}

@JsonSerializable()
class GameItemPageEntity {

  GameItemPageEntity();

  factory GameItemPageEntity.fromJson(Map<String, dynamic> json) =>
      $GameItemPageEntityFromJson(json);

  Map<String, dynamic> toJson() => $GameItemPageEntityToJson(this);

  int? total;
  int? size;
  int? current;
  int? pages;
  List<GameItemEntity>? records;

}